body {
    margin: 0;
    height: 100vh;
    display: flex;
    // 改变主轴方向
    flex-direction: column;
}

img {
    display: block;
}

.text-overflow {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
}

// 头部
header {

    // 功能区容器
    .features-wrapper {
        display: flex;
        justify-content: space-between;
        height: 50px;
        padding: 0 16px;

        .logo {
            height: 100%;
            width: auto;
        }

        // 头部上方
        .features {
            display: flex;
            height: 100%;
            align-items: center;

            >* {
                margin-left: 16px;
            }

            .search {
                font-size: 24px;
                color: #eee;
            }

            .login-btn {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                text-align: center;
                line-height: 32px;
                background-color: #f6f6f6;
                color: pink;
                font-size: 12px;
            }

            .download-btn {
                padding: 4px 8px;
                border-radius: 4px;
                background-color: pink;
                color: #fff;
            }
        }
    }

    // tab导航
    nav {
        display: flex;
        align-items: center;
        height: 50px;
        box-shadow: 0 5px 3px #ccc;

        .tabs-wrapper {
            flex: 1;
            // outline: 1px solid red;
            overflow-x: auto;
            height: 100%;

            // 设置webkit内核浏览器的滚动条样式
            &::-webkit-scrollbar {
                display: none;
            }

            .tabs {
                display: flex;
                height: 100%;

                .tab {
                    margin: 0 16px;
                    word-break: keep-all;
                    height: 100%;
                    box-sizing: border-box;
                    line-height: 50px;

                    &:hover {
                        border-bottom: 2px solid pink;
                        color: pink;
                    }
                }
            }
        }

        // 箭头
        .arrow {
            padding: 0 16px;
            color: #ccc;
        }
    }
}

// 内容区域
.content-wrapper {
    flex: 1;
    overflow-y: auto;

    .content {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 8px;
        box-sizing: border-box;

        .card {
            width: 50%;
            height: 160px;
            padding: 8px;
            box-sizing: border-box;

            .thumb-wrapper {
                height: 100px;
                position: relative;
                // hide 害的
                // hidden 黑的嗯
                overflow: hidden;

                .thumb {
                    height: 100%;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                }

                .mask {
                    height: 44px;
                    width: 100%;
                    background-image: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .1));
                    position: absolute;
                    bottom: 0;
                    color: #fff;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 0 4px;
                    box-sizing: border-box;
                }
            }

            .title {
                height: 44px;
                line-height: 22px;
                .text-overflow;
            }
        }
    }
}

// 打开app按钮
.go-app {
    position: fixed;
    height: 40px;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background-color: pink;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;

    .search {
        margin-right: 4px;
    }
}